package com.yd.domain.commom;

/**
 * 定义整个平台所有的错误代码，开发阶段支持随时补充
 * @author huy
 */
public class Exceptions {

	//错误码定义标准，包+模块+错误类型。
	/**
	 * 服务层
	 */
	public final static class SERVICE{
		
		/**资源文件管理服务相关异常**/
		public final static class FILEMANAGE{
			/**不支持的文件类型**/
			public final static String ILLEGAL_TYPE = "FM1001";
			/**大小超过限制**/
			public final static String OUT_SIZE = "FM1002";
			/**缺少参数**/
			public final static String LACK_PARAM = "FM2001";
			/**文件后缀名与文件真实类型与不符**/
			public final static String NOT_MATCH = "FM2001";
			/**其他**/
			public final static String OTHEREXCEPTION = "FM9999";
		}
	}
	/**
	 * 公共层
	 */
	public final static class COMMON{
		public final static String SEND_MESSAGEEXCEPTION="MESS001";
		/** 系统管理模块 */
		public final static class SYSMANAGE{
			/**数据库操作异常**/
			public final static String DBEXCEPTION = "COM0001";
			/**重复的名字**/
			public final static String NAME_REPEAT = "COM0002";
			/**对象转换异常**/
			public final static String OBJTRANSEXCEPTION = "COM0008";
			/**密码校验错误**/
			public final static String PASSWDVALIDEXCEPTION = "COM0003";
			/**其他**/
			public final static String OTHEREXCEPTION = "COM9999";
		}
		/** 报表管理模块 */
		public final static class REPORTMANAGE{
			/**数据库操作异常**/
			public final static String DBEXCEPTION = "COM0001";
			/**重复的名字**/
			public final static String NAME_REPEAT = "COM0002";
			/**对象转换异常**/
			public final static String OBJTRANSEXCEPTION = "COM0008";
			/**密码校验错误**/
			public final static String PASSWDVALIDEXCEPTION = "COM0003";
			/**其他**/
			public final static String OTHEREXCEPTION = "COM9999";
		}
		/** 首页管理模块 */
		public final static class BANNERMANAGE{
			/**数据库操作异常**/
			public final static String DBEXCEPTION = "COM0001";
			/**重复的名字**/
			public final static String NAME_REPEAT = "COM0002";
			/**对象转换异常**/
			public final static String OBJTRANSEXCEPTION = "COM0008";
			/**密码校验错误**/
			public final static String PASSWDVALIDEXCEPTION = "COM0003";
			/**其他**/
			public final static String OTHEREXCEPTION = "COM9999";
		}
	}
	
	/**
	 * 平台层
	 */
	public final static class PLATFORM{
		/**公共方法**/
		public final static class COMMON{
			/**对象转换异常**/
			public final static String OBJTRANSEXCEPTION = "PCO001";
			/**方法入参异常**/
			public final static String ILLEGALARGUMENTEXCEPTION = "PCO002";
			/**其他**/
			public final static String OTHEREXCEPTION = "PCO999";
		}
	}

	/**当前用户没有相应操作权限**/
	public final static String AUTHORITYEXCEPTION = "A0000";
	/**
	 * 参数校验错误
	 */
	public static final String A8888 ="A8888";
	/**
	 * 其他错误
	 */
	public static final String X9999 ="X9999";
	
}
